import request from '@/utils/request'

// 查询积分佣金记录列表
export function listCommissionrecord(query) {
  return request({
    url: '/system/commissionrecord/list',
    method: 'get',
    params: query
  })
}

// 查询积分佣金记录详细
export function getCommissionrecord(commid) {
  return request({
    url: '/system/commissionrecord/' + commid,
    method: 'get'
  })
}

// 新增积分佣金记录
export function addCommissionrecord(data) {
  return request({
    url: '/system/commissionrecord',
    method: 'post',
    data: data
  })
}

// 修改积分佣金记录
export function updateCommissionrecord(data) {
  return request({
    url: '/system/commissionrecord',
    method: 'put',
    data: data
  })
}

// 删除积分佣金记录
export function delCommissionrecord(commid) {
  return request({
    url: '/system/commissionrecord/' + commid,
    method: 'delete'
  })
}

// 导出积分佣金记录
export function exportCommissionrecord(query) {
  return request({
    url: '/system/commissionrecord/export',
    method: 'get',
    params: query
  })
}